<template>
  <div class="bg-green-300 inline" @click="toLoginHandler">登录</div>
  <div class="bg-yellow-300 ml-2 inline">黄色</div>
  <div class="bg-blue-300 ml-2 inline">蓝色</div>
  <div class="bg-pink-300 ml-2 inline">粉红</div>
</template>

<script setup>
import { useRouter } from "vue-router";

const router = useRouter()

const toLoginHandler = () => {
  router.push('/login')
};
</script>
